package awt;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Frame;
import java.awt.LayoutManager;

public class AWTButtonExample extends Frame {
	
	public AWTButtonExample() {
		setTitle("MyFrame"); 
		setSize(400, 100); 
		LayoutManager layoutManager = new BorderLayout();
		setLayout(layoutManager);
		add(new Button("Center"),BorderLayout.CENTER);
		add(new Button("West")	,BorderLayout.WEST);
		add(new Button("East")	,BorderLayout.EAST);
		add(new Button("North")	,BorderLayout.NORTH);
		add(new Button("South")	,BorderLayout.SOUTH);
		
		setSize(400, 300); 
		
		setVisible(true); 
	}

	public static void main(String args[]) {
		new AWTButtonExample();
	}
}

